import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class bullet1 here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class bullet1 extends Bala
{   
    int dir;
    /**
     * Act - do whatever the bullet1 wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public bullet1(int dir)
    {
        this.dir=dir;
        if(dir==2)
            setRotation(180);
        
    }

    public void act() 
    {
        move(dir);
    }    
}
